import request from '@/utils/request'

// 查询任务奖励配置列表
export function listRewardSet(query) {
  return request({
    url: '/system/rewardSet/list',
    method: 'get',
    params: query
  })
}

// 查询任务奖励配置详细
export function getRewardSet(id) {
  return request({
    url: '/system/rewardSet/' + id,
    method: 'get'
  })
}

// 新增任务奖励配置
export function addRewardSet(data) {
  return request({
    url: '/system/rewardSet',
    method: 'post',
    data: data
  })
}

// 修改任务奖励配置
export function updateRewardSet(data) {
  return request({
    url: '/system/rewardSet',
    method: 'put',
    data: data
  })
}

// 删除任务奖励配置
export function delRewardSet(id) {
  return request({
    url: '/system/rewardSet/' + id,
    method: 'delete'
  })
}
